import c
import mtime

start_time = mtime.t()

c.setup()

LIMIT = 1000000

def getseq(limit):
	x = 1
	seq = "0."
	while x <= limit:
		seq = seq + str(x)
		x = x + 1
	return seq
s = getseq(LIMIT)
total = int(s[1+1]) * int(s[10+1]) * int(s[100+1]) * int(s[1000+1]) * int(s[10000+1]) * int(s[100000+1]) * int(s[1000000+1])
c.answer(total,start_time)
c.end()